import service from '@/utils/request'

// @Tags EquipmentKind
// @Summary 创建equipmentKind表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EquipmentKind true "创建equipmentKind表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /equipmentKind/createEquipmentKind [post]
export const createEquipmentKind = (data) => {
  return service({
    url: '/equipmentKind/createEquipmentKind',
    method: 'post',
    data
  })
}

// @Tags EquipmentKind
// @Summary 删除equipmentKind表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EquipmentKind true "删除equipmentKind表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /equipmentKind/deleteEquipmentKind [delete]
export const deleteEquipmentKind = (data) => {
  return service({
    url: '/equipmentKind/deleteEquipmentKind',
    method: 'delete',
    data
  })
}

// @Tags EquipmentKind
// @Summary 批量删除equipmentKind表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除equipmentKind表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /equipmentKind/deleteEquipmentKind [delete]
export const deleteEquipmentKindByIds = (data) => {
  return service({
    url: '/equipmentKind/deleteEquipmentKindByIds',
    method: 'delete',
    data
  })
}

// @Tags EquipmentKind
// @Summary 更新equipmentKind表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EquipmentKind true "更新equipmentKind表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /equipmentKind/updateEquipmentKind [put]
export const updateEquipmentKind = (data) => {
  return service({
    url: '/equipmentKind/updateEquipmentKind',
    method: 'put',
    data
  })
}

// @Tags EquipmentKind
// @Summary 用id查询equipmentKind表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.EquipmentKind true "用id查询equipmentKind表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /equipmentKind/findEquipmentKind [get]
export const findEquipmentKind = (params) => {
  return service({
    url: '/equipmentKind/findEquipmentKind',
    method: 'get',
    params
  })
}

// @Tags EquipmentKind
// @Summary 分页获取equipmentKind表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取equipmentKind表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /equipmentKind/getEquipmentKindList [get]
export const getEquipmentKindList = (params) => {
  return service({
    url: '/equipmentKind/getEquipmentKindList',
    method: 'get',
    params
  })
}
